<div class='user-order' ng-controller='UserOrder'>
    <div class='order-list'>
       <div class='goods am-g am-g-collapse' ng-repeat='order in orders'>
            <div class='am-u-sm-4 banner'>
                <img ng-src='{{order.banner}}'>
                <div class='tag'>
                    <img src='../image/tag/hot.png' ng-if='order.tag == 1'>
                    <img src='../image/tag/new.png' ng-if='order.tag == 2'>
                </div>
            </div>
            <div class='am-u-sm-7 info'>
                <div class='name'>{{order.name}}</div>
                <div class='intro font-info'>
                    <img class='icon' src='../image/icon/user.png' align="absmiddle">
                    {{order.teacher_name}} 共18章节
                </div>
                <div class='buy-count font-info'>{{order.buy_count}}人已换购</div>
                <div class='price-score font-info' ng-if='order.buy_type == 2'>
                    <img class='icon' src='../image/icon/score.png' align="absmiddle">{{order.score}}
                </div>
                <div class='price-money font-info' ng-if='order.buy_type == 1'>
                    <img class='icon' src='../image/icon/money.png' align="absmiddle">{{order.price}}
                </div>
            </div>

            <button class='button btn-ok' ng-if='order.status == 1'>
                交易完成
            </button>
            <button class='button btn-pay' ng-if='order.status == 2' ng-click='buy_course(order.course_id)'>
                待支付
            </button>
        </div>

        <div class='load-more' ng-if='isEnd === false' ng-click='load_more()'>加载更多</div>
    </div>
</div>